package com.levi.dubbo.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.levi.service.IUserService;
import org.springframework.stereotype.Component;

@Service(interfaceClass = IUserService.class)//dubbo的注解，以zk为注册中心的话就不用了指定service了
@Component
public class UserServiceImpl implements IUserService {
    @Override
    public String hello(String name) {
        return "hello"+name;
    }
}
